/* **********************************************************
 * Copyright 2010 Dimitar Vangelovski
 *
 * This file is part of the Gens3 3D Engine.
 * 
 * The Gens3 3D Engine is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 * 
 * The Gens3 3D Engine is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with the Gens3 3D Engine; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA
 * **********************************************************/


#pragma once

#include "TextureUVW.h"
#include <vector>

class CMeshTVertList
{
public:

	CMeshTVertList();
	CMeshTVertList(const CMeshTVertList &other);
	CMeshTVertList(int nMeshNumTVertex);
	~CMeshTVertList();

	void			SetMeshTVert(int nPos, const CTextureUVW &otherUVW) { m_MeshTVertList[nPos] = otherUVW; }
	void			SetMeshTVertList(const std::vector<CTextureUVW> &other) { m_MeshTVertList = other; }
	void			SetMeshNumVertex(int nNum) { m_nMeshNumVertex = nNum; }

	void			InsertMeshTVert(const CTextureUVW &other) { m_MeshTVertList.push_back(other); }

	CTextureUVW			GetMeshTVert(int nPos) const { return m_MeshTVertList.size() == 0 ? m_NullTexUVW : m_MeshTVertList[nPos]; }
	std::vector<CTextureUVW>	GetMeshTVertList() const { return m_MeshTVertList; } 
	int				GetMeshNumVertex() const { return m_nMeshNumVertex; }

private:
	std::vector<CTextureUVW>	m_MeshTVertList;
	int				m_nMeshNumVertex;
	CTextureUVW			m_NullTexUVW;
};
